
.header {
  position: relative;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  min-width: $container-large-desktop;
  box-sizing: border-box;
  @include clearfix();
  .brand-logo {
    position: absolute;
    left: 30px;
    width: 230px;
    height: 46px;
    padding-top: 20px;
    box-sizing: border-box;
    z-index: 1;
    img {
      display: block;
      width: 100%;
    }
  }
  .header-operations {
    position: absolute;
    right: 30px;
    top: 18px;
    width: 340px;
    z-index: 1;
    overflow: hidden;
    .el-btn {
      font-size: 12px;
      padding: 4px 20px;
      border-radius: 15px;
    }
    .header-search-form {
      float: left;
      width: 173px;
      margin-right: 6px;
    }
  }
  .header-navbar {
    position: relative;
  }

}

.header-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  font-size: 0;
  @include clearfix;
  > li {
    position: relative;
    display: inline-block;
    > a {
      display: block;
      height: 66px;
      line-height: 66px;
      font-size: 16px;
      padding: 0 25px;
      color: #666;
      transition: opacity .2s linear;
      &:hover {
        opacity: .6;
      }
    }
    &.active {
      > a {
        color: $primary-color;
        &:hover {
          opacity: 1;
        }
      }
      &:after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: 0;
        width: 10px;
        height: 2px;
        background-color: $primary-color;
        margin-left: -5px;
      }
    }
  }
}

.header-operations {
  .header-search-group {
    position: relative;
    float: right;
    width: 30px;
    height: 30px;
    background-color: #fff;
    transition: width 0.2s linear;
    overflow: hidden;
    &:hover {
      width: 173px;
      .search-input {
        //opacity: 1;
        visibility: visible;
        //display: block;
      }
      .header-search-group-append {
        //border:  solid #eee;
        //border-width: 1px 1px 1px 0;
        //border-radius: 0 15px 15px 0;
      }
    }
    .search-input {
      //display: none;
      //opacity: 0;
      visibility: hidden;
      position: absolute;
      width: 173px;
      left: 0;
      top: 0;
      font-size: 12px;
      border: 1px solid #eee;
      padding: 0 40px 0 15px;
      line-height: 28px;
      height: 30px;
      border-radius: 15px;
      box-sizing: border-box;
      background-color: transparent;
      outline: none;
      transition: left 0.2s linear;
    }
  }

  .header-search-group-append {
    position: relative;
    float: right;
    width: 40px;
    text-align: center;
    line-height: 28px;
    height: 28px;
    box-sizing: border-box;
    cursor: pointer;
    z-index: 1;
    //background-color: #fff;
  }

  .#{$prefix} {
    &-form-group {
      overflow: hidden;
      &:hover {
        .#{$prefix}-form-control {
          left: 0;
          border-color: #eee;
          border-right: 0;
        }
        .#{$prefix}-form-group_append {
          //border-radius: 0 15px 15px 0;
          border-color: #eee;
        }
      }
    }
    &-form-group_append {
      background-color: #fff;
      border-radius: 0;
      height: 28px;
      border-color: transparent;
      padding: 0 8px;
      cursor: pointer;
    }
    &-form-control {
      position: absolute;
      top: 0;
      left: 141px;
      width: 141px;
      padding-left: 15px;
      font-size: 12px;
      border-color: transparent;
      border-top-left-radius: 15px;
      border-bottom-left-radius: 15px;
      box-sizing: border-box;
      transition: left 0.3s linear;
    }
  }
}

.header-dropdown-content {
  height: 0;
  transition: height .2s cubic-bezier(0, 0, .2, 1) 0ms;
  overflow: hidden;
}

.header-dropdown-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  width: 100%;
  background-color: rgba(248, 248, 248, 0.98);
  z-index: $header-dropdown-zindex;
  //&.static{
  //  position: static;
  //}
  .header-dropdown-nav {
    display: none;
    margin: 0 auto;
    padding: 0 50px;
    width: $container-large-desktop;
    box-sizing: border-box;
    overflow: hidden;
  }
  .sub-nav-container {
    padding-top: 50px;
    margin-bottom: 30px;
    overflow: hidden;
    .sub-nav-block {
      float: left;
      width: 200px;
      box-sizing: border-box;
      > .nav-item {
        position: relative;
        display: inline-block;
        padding-bottom: 15px;
        line-height: 1;
        margin-bottom: 15px;
        color: #333;
        font-size: 16px;
        vertical-align: top;
        &:after {
          content: '';
          position: absolute;
          left: 0;
          bottom: 0;
          width: 10px;
          height: 2px;
          background-color: $primary-color;
        }
      }
    }
  }
  .sub-nav {
    padding: 0;
    margin: 0;
    list-style: none;
    .sub-menu-item {
      line-height: 16px;
      font-size: 12px;
      margin-bottom: 6px;
    }
    .tag {
      margin-left: 4px;
      transform: scale(0.8);
    }
    .title {
      color: $second-color;
      &:hover {
        opacity: 0.6;
      }
    }
  }
  .sub-nav-more {
    display: inline-block;
    color: lighten($second-color, 10%);
    font-size: 12px;
    margin-bottom: 6px;
  }
}

.data-service-menu-banners {
  margin-right: -50px;
  margin-bottom: 30px;
  overflow: hidden;
  .data-service-menu-banner {
    float: left;
    display: block;
    width: 330px;
    margin-right: 50px;
    > img {
      display: block;
      width: 100%;
    }
  }
}

.sub-nav-production {
  width: 550px;
  float: left;
  overflow: hidden;
  .sub-nav-pro-title {
    display: block;
    font-size: 16px;
    margin: 0 0 40px;
    color: $second-color;
    &:before {
      display: inline-block;
      content: '';
      width: 5px;
      height: 5px;
      margin-right: 10px;
      background-color: $primary-color;
      vertical-align: middle;
    }
  }
  .production-item {
    float: left;
    width: 240px;
    margin: 0 10px 10px 0;
    > a {
      color: $second-color;
      font-size: 14px;
      &:before {
        display: inline-block;
        content: '>';
        margin-right: 4px;
        vertical-align: middle;
      }
    }
    .desc {
      padding-left: 16px;
      font-size: 12px;
      color: lighten($second-color, 10%);
    }
  }
}

.header-register {
  .brand-logo {
    position: relative;
    left: auto;
    right: auto;
    height: 66px;
    float: left;
  }
}

.header-fixed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-width: $container-large-desktop;
}

.header-black {
  background-color: #000;
  border-color: transparent;
  .header-nav > li {
    > a {
      color: #fff;
      &:hover {
        opacity: .5;
      }
    }
    &.active{
      >a{
        color: $primary-color;
      }
    }
  }
  .header-dropdown-menu{
    background-color: rgba(34, 34, 34, 0.98);
  }
  .header-dropdown-menu .sub-nav-container .sub-nav-block > .nav-item{
    color: #fff;
  }
  .sub-nav-production .sub-nav-pro-title{
    color: #fff;
  }
  .header-search-group{
    background: transparent;
  }
  .header-operations .header-search-group .search-input{
    color: #fff;
  }
  .header-search-group-append{
    color: #fff;
  }
  .header-operations .el-btn-default{
    background: transparent;
    color: #fff;
  }
}